<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <title>${category.name}</title>
    <meta name="decorator" content="cms_default_${site.theme}"/>
    <meta name="description" content="${category.description}"/>
    <meta name="keywords" content="${category.keywords}"/>
</head>
<body>
<style type="text/css">
    .breadcrumb {
        height: 30px;
        background: url(/static/images/line_details.png);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .breadcrumb li {
        display: inline;
        height: 30px;
        line-height: 30px;
        text-align: center;
    }
</style>
<div class="main_div clear">
    <div>
        <ul class="breadcrumb">
            <cms:frontCurrentPosition category="${category}"/>
        </ul>
    </div>

    <div style="margin-top: 10px">
        <div class="left_div">
            <div class="left_div_one">
                <div class="left_title_back">
                    栏目列表
                </div>
                <ul>
                    <cms:frontCategoryList categoryList="${categoryList}"/>
                </ul>
            </div>
        </div>

        <div class="right_container">
            <c:set var="index" value="1"/>
            <c:forEach items="${categoryList}" var="tpl">
                <c:if test="${tpl.inList eq '1' && tpl.module ne ''}">
                    <div>
                        <div class="right_title"><span>${tpl.name}</span></div>
                    </div>
                    <div class="margin_top">
                        <table width="820px" cellspacing="0" class="list_table">
                            <tbody>
                            <c:if test="${tpl.module eq 'article'}">
                                <c:forEach items="${fnc:getArticleList(site.id, tpl.id, 5, '')}" var="article">
                                    <tr>
                                        <td width="43" style="padding-left: 10px">
                                            [<fmt:formatDate value="${article.updateDate}" pattern="yyyy.MM.dd"/>]
                                        </td>
                                        <td width="610px">
                                            <a href="${ctx}/view-${article.category.id}-${article.id}${urlSuffix}"
                                               style="color:${article.color}">
                                                    ${fns:abbr(article.title,40)}
                                            </a>
                                        </td>
                                        <td width="65" style="padding-right: 5px">
                                            浏览${article.hits}次
                                        </td>
                                    </tr>
                                </c:forEach>
                            </c:if>
                            </tbody>
                        </table>
                    </div>
                </c:if>
            </c:forEach>
        </div>
    </div>
</div>
</body>
</html>